package action.user;

import service.UserService;
import entity.User;
import action.BaseAction;

public class RegisterAction extends BaseAction{
	//input 
	private User user;
	//injection
	private UserService userService;
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	public String execute() throws Exception{
		userService.register(user,httpReq);
		return "success";
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
